from .base import *

__all__ = ['MockItem']


class MockItem(BaseItem):
    item_type = 'mock'  # 新闻
    readNum = scrapy.Field()  # 阅读数
    commentNum = scrapy.Field()  # 评论数
    praiseNum = scrapy.Field()  # 点赞数
    column = scrapy.Field()  # 板块（平媒）
    fromSource = scrapy.Field()  # 转载源
    fromLink = scrapy.Field()  # 转载链接

    # 微信
    officalAccount = scrapy.Field()  # 公众号
    officalBiz = scrapy.Field()  # 公众号ID
    officalIdx = scrapy.Field()  # 公众号推送位置
    originOfficalAccount = scrapy.Field()  # 转载公众号
    original = scrapy.Field()  # 是否原创

    def __init__(self):
        super().__init__()
        self['type'] = 'mock'
        self['origin'] = {
            'originName': '新闻网站测试'
        }
